package starComponent.elements;

import java.awt.Color;

import starComponent.E_PossibleBranches;

public class A_Branch {

	protected static final long serialVersionUID = -6312879105601954483L;
	
	public static final int BOUNDING_STEP = 2, BOUNDING_SIDE = 100, BOUNDING_MARGIN=10;
	
	protected double min, max;

	protected String name;

	protected double length;
	
	protected Color branchColor;

	protected boolean isSnapToTicks = false;
	
	protected E_PossibleBranches branchType;
	
	
	public A_Branch(E_PossibleBranches branch, Color color){
		this.branchType = branch;
		this.branchColor = color;
		this.name = branch.getName();
		this.min = branch.getMinValue();
		this.max = branch.getMaxValue();
		this.setSnapToTicks(branch.isSnapToTicks());
	}
	
	
	
	public double getLength() {
		return length;
	}

	public void setLength(double length) {
		this.length = length;
	}

	public void setMin(double min) {
		this.min = min;
	}

	public double getMin() {
		return min;
	}

	public void setMax(double max) {
		this.max = max;
	}

	public double getMax() {
		return max;
	}
	

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setBranchColor(Color branchColor) {
		this.branchColor = branchColor;
	}

	public Color getBranchColor() {
		return branchColor;
	}
	
	public void setSnapToTicks(boolean isSnapToTicks) {
		this.isSnapToTicks = isSnapToTicks;
	}

	public boolean isSnapToTicks() {
		return isSnapToTicks;
	}
	
	public E_PossibleBranches getBranchType() {
		return branchType;
	}

	public void setBranchType(E_PossibleBranches branchType) {
		this.branchType = branchType;
	}

}
